#include <iostream>
#include <string>
#include <unordered_map>
#include <cassert>
using namespace std;



class Task
{
public:
    Task()
    {
        _map[0] = "打印任务";
        _map[1] = "下载任务";
        _map[2] = "记录日志任务";
        _num = rand() % _map.size();
    }



    string operator()()
    {
        return Run(_num);
    }

private:
    string Run(int num)
    {
        assert(num >= 0 && num < _map.size());

        return _map[num];
    }

    unordered_map<int, string> _map;
    int _num;
};